package com.pb.wkflow.api.annotation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 初始化
 * @author 苗益辉
 * @date 2022/10/18 11:05
 */
@Component
public class WorkflowAnnotationComponent implements ApplicationRunner {

    @Autowired
    GlobalWorkflowAnnotation globalWorkflowAnnotation;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // 初始化数据
        globalWorkflowAnnotation.init();
    }
}
